import request from '@/utils/request/index.js'
export default {
	
	/**
	 * 获取推荐标签
	 */
	getRecomTagList(){
		return request.request({
			url:'/h5/noctag/list',
			method: 'post',
			data:{
				recomFlag: 1,
				page: 1,
				limit: 8
			}
		})
	},
	/**保存标签
	 * @param {Object} tagName
	 */
	saveTag(tagName){
		return request.request({
			url: '/h5/noctag/save',
			method: 'post',
			data: {
				tagName:tagName,
			},
		})
	},
	getDemandDetail(demandId) {
		return request.request({
			url: '/h5/nocdemand/info/' + demandId,
			method: 'post',
			data: {
				
			}
		})
	},
	/**
	 * 获取需求分类
	 */
	getDemandClassify(){
		return request.request({
			url:'/h5/nocdemandclassify/queryAll',
			method: 'post',
			data:{},
		})
	},
	updDemand(demandId,title,content,imgList,useTagList,ifPhone,demandClassifyId,quantity,origin,priceStart,priceEnd,delFlag){
		return request.request({
			url: '/h5/nocdemand/updDemand',
			method: 'post',
			data: {
				 id: demandId,
				 title: title,
				 content: content,
				 imgList: imgList,
				 tagList: useTagList,
				 ifPhone: ifPhone,
				 demandClassifyId: demandClassifyId,
				 useTagList:useTagList,
				 quantity:quantity,
				 origin:origin,
				 priceStart:priceStart,
				 priceEnd:priceEnd,
				 delFlag:delFlag,
				 
				 
				 
				 
				 
				 
			},
		})
	}
		
	
}